Some code clean-up and a lot of documentation in the "instruction set abstraction layer"