Code formating an comments. Reversed CLI detection. Added grunt and jsdoc.