Added function to load programs into memory, provided error case for
unknown opcodes.