Added logging and updated every class the uses it, build folders if they
don't already exist.