update jsdoc annotations, switch to 4-space indentation