Convert inline documentation to conform to JSDoc3. Fixes #19.