Better comments and JSLint fixes