Converted to PSR-0.
Cleaned up comments.
Updated references to pass code inspection.