Adding logging and cleaning up output
Refactoring and doing git pull as well