Further refactoring to make the script more usable as a library.
Moved normalization factor definition inside the main class
Local gitignore added