polishes and add tests to fileHelper, improves logging to console