Tidy up the Document and Diff modules
Add stub 'diff' operations
Add makefile to format, generate tags, etc
Apply formatting from Makefile