Adding helper and some code cleanups

- Added helper so that we have a centralized place to configure log file info
- Helper also provides some methods that can be used elsewhere in the code
- Added more log calls to help debug issues