Use hash for the jumps
Use lambdas instead of arrays to store instructions
Rename module Instructions to RegisterActions and make some methods private
Rename some functions and remove some brackets