Added support for nullArg, invalidOp, invalidArg

Also started working on the docs