added more jsdoc style comments