Added more tests of the corpus module. Refactored tests to make use of a base test case supplying some useful utility functions for dealing with CSV input/output.
Added clarification of the behaviour of diff and intersection supplied queries to docstrings.