started adding jsdoc comments