Minor logging change
Refactoring
Refactor preprocessing
Allow compressed input file