updated readme and tests to work in PHP 5.3