Added op code functions, refactor command buffer
Refactor commands a bit more