Add jsdoc style comments for all functions. This makes it easier to work with the library specially if someone is using vscode or atom.