Add JSdocs

closes #1