trim whitespace, exit on syntax error, fixed symfony2 coding standars bugs