Changed indentation according to psr
Added namespaces and fixed static analysis issues
Merge pull request #4 from DixonsCz/psrChange

Psr change