Adding JSDoc documentation of classes

Example [JSDoc](https://github.com/jsdoc3/jsdoc) comments and type annotation.

Are darkwallet devs interested in adopting this convention so that documentation can be generated?