fixes #167. code is now PSR-2 compliant
run phpcs on travis