Changed the syntax from 5.2 to 5.3 using namespace

Compliant with PSR-2.
All tests were rewritten as well.
Also, removed all executable flags where not needed.