change print to sys.stdout in classify to speed up display
improvements to classify
lots of optimizations and features in classify