Updated spec
Implemented all instructions. Haven't tested yet.