fixed reference
externalized function to open all files and initialize process blocks, and function to execute an opcode