Added an example directory.
Removed compare.txt example.
Got rid of magic and added exception catching when opening a file.