Code / jsdoc cleanup