minor changes

- ignoring Eclipse project files in .gitignore
- removal of unnecessary variable
- missing break in switch