refactored to psr-2 coding standard
Merge pull request #90 from zelgerj/0.5.8-beta

refactored to psr-2 coding standard