Add jsdoc and header comments