added grunt-jsdoc-to-markdown

- added grunt-jsdoc-to-markdown to build
- added api to gitignore
- added function documentation
- created ‘classes’ and moved functions
- some code changes