Added .settings directory to ignored. Refactored code. Moved GUI on a synchronous EDT.