jsdocs and tweaks