Input validation is a nightmare!

I fixed most of the really bad ones but there are still some.
eg. (no invalid op on the main control loop)
but it should be alright.