changed newlines to UNIX style
added phpunit test suite