Style fixes.
Fixed bug -- typo in variable.
Fixed case sensitivity typo.
Removed unused code.
Renamed some methods to better match convention.
Bug fixes: eliminated redundant method, fixed bad isset check.