Commented + jsdoc headers

Type info is still largely missing from JSDoc headers.