move to PSR-4 and set __DIR__ in examples