PSR-2 compliant library/ folder

Didn't had enough time to do the tests/ folder. Maybe this evening.