mshah - adding git ignore and minor refactoring