Added docblock comments
Fixed name of variable when throwing exception in checkEnv
fixed variable names in throw
added \ to a couple of Exceptions
fix typo
align comment blocks and arrays
reformat and start standardising docblocks
added some more comments
added extra \n to output to make test pass
added 2 new tests