mods & bug fixes

* Fixed bug where variable was called as non-object
* DRY'd up the code a little more
* Adjusted the modified NIST algorithm to penalize repeated characters
more severely
* Added more PHPDOC comments