added instr. section and cleaned up code portions