Added PHPunit.
Added unit tests.