Changed main class to ensure thread saftely with Swing

Also updated gitignore to exclude eclipse settings files