added phpunit on composer require-dev
remove trailing spaces and adjust code formatting