Several enhancements.
* Cleaner separation of instruction generation and memory encoding.
* Comments in generated source code.