Added logging and verbosity flags as well as hash

Now there are flags to control the verbosity of the program and whether
a log file is generated. There is also the use of MD5 to check whether
the file was successfully copied from one area to another.