GUI code almost updated for use with updated CorpusDB class