switched to using logging, cleaned up code and change default dir to ./report