Fixing some doc blocks, implementing a jsdoc3 template