added jsdoc style comments to nearly all files