Add JSDoc to the workflow, and start adding inline code documentation