Tidied up functions in corpus.R, namely corpusCreate and summary.corpus. Commented out corpusFromHeaders as this is not working cleanly yet.