Implemented some validation. Updated gitignore to ignore generated code