Changed docs to use jsdocs