Added many more function comments. Improved program output considerably to help user understand what is happening. Fixed several major bugs including automatic determination of the last modification date of the file.
General code improvements and splitting big funtions into smaller functions. More comments. General code tidy up.