fix typos, add missing JSDoc and License reference