Code formatting fixes

- Added project settings to make the code formatting consistent on save
- Added support for CheckStyle for linting