Added gitignore and eclipse formatter settings
Applied formatter to existing code