Initial add of files
Fixed issues and added comments

- Fixed an issue where the main block wasn't being executed when no
config file is present
- Added some comments to the helper lib.