Upgraded code to PSR-0 standard. Fixed minor bugs.
Updated composer.json for PSR-0.
Fix to composer.json.