Fixes to smooth -> smoothdfm, preserves dfm object.
Fixed bugs and improved segmentSentence().