Public API fixes

Apparently this package is broken by the "sync" commit. I've provided fixes, improved autoloading by using Composer's and made it PSR-compliant. See commits for more details. 

Hope it helps!