added documentation in comments

minified as well