update main class and put settings folder as ignore
fixed gitignore