Fixed and added testing files for testing code

Added .h file and a simple main program to test the function.  Edited
the function so that trailing whitespace at the end of a line is ignored
for comparison, as well as piped the output of diff from the console to
a junk file called nul