Lots of jsdocs fixes ready for the new doc generator.