Fix JavaDoc typo.
Wrap checked exceptions into runtime exceptions earlier to simplify method signatures and code.
Improve code encapsulation.
Add scratch code generation code.