Added instruction compiler, fixed tests