Modernizr doesn't necessarily do anything besides feature detection. For example, if you wanted to do a check in javascript for, lets say css transition support, you would do something like this:
if (Modernizr.csstransitions) {
// Do modern things
} else {
// Do old things
}
As for the classes it adds to the HTML element, that is up to you how to use them via stylesheets.