Move helper function into helper module
Add some parameter logging
Fix crash when no config file is present
More logging messages
Fix issue where path to source root was being counted as post categories
Refactor writePage function into a few smaller chunks