Adding JSDoc comments for TAP format helper functions