Add options for using html-differ as a program
Fix some bugs