Some w3c validation compliance fixes

Fixes label problems
Removes some badly formatted comments
Fixes stray legend tag
Closes fieldset tag
Fixes label for= error