difflib added

Added the difflib library to facilitate line-by line comparisons.  Also
modifed the code substantially but now the script actually works.