Docs

Added JSDOC 3 style comments.