Add JSDoc

Closes #8