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
Merge pull request #6 from emicica/master

Doc enhancments and minor fixes