removed commented code
code reformatting, added "use strict" and a bit of directive cleanup