add some unit-tests, cleanup model/config, add phpcs-helper & report