Initial import of text parsing and NMF generation code.