Append a / to the path if one is not present.
Trailing slash is now automatically appended if not present.
Simplified logging of the counters for updates and new files.
Switched all logging print statements to new log function.