Fixes to comply with PSR-2 coding standards: Changed from Tabs to 4 spaces in indentation and fixed several code style issues. Added some missing phpDocs and updated wrong ones.