Major refactoring of the bytecode reader. This includes the following