Various changes

- Formatted code to match PSR1/2
- Fixed nearly all @param and @return for static code analysis (ie PHPStorm)
- Removed some unused methods (mainly because of invalid references)