Updating to use namespaces, and use phpunit, and some small fixes to documentation