Changed autoloading to PSR-4
Fixed compatibility with parent object