Fixed some changes with op codes

added memory manager