grunt tasks improved

- added documentation to grunt tasks
- replaced node.js `fs.*` calls with `grunt.file.*`