code cleanup
Added support for setting the instruction pointer