JSDoc, readme update, and test fixes.