Use whitespace consistently
Fix styling issues
Add ErrorGeneratorTests class
Add error generator tests