Add documentation with JSDoc3.
Add documentation to README.md