Corrected errors in calculations, added a flag to disable normalization, rounding moved to normalization function.
Unit Test Updates

Unit tests now no longer require PHPUnit framework (since PHPUnit 3.6).
Corrected errors in unit tests.
Cleaned up coding standards.
Unit Test Fixes

Renamed files so they can be run by PHPUnit (which looks for files
ending in ...Test.php).
Added basic phpunit config file.