Improve documentation to more closely follow JSDoc