Fixed code formatting
Fixed most of the phpdoc comments
Updated code style to match the phpcs Symfony2 Code Style Guidelines
Fixed Inspector issues with returns, type compatibility etc.