Documented the library

JSDoc is your friend :)