modified gitignore
minor refactoring