Add JSDoc, improve README and bump version.