Added logging and hash based file compare method.