PSR2, fixes, typos, license, composer JSON, and test suite setup