Various spelling fixes. Code simplifications
Add intellj gitignore
remove unused function