* Add flushing to printing number of processed positive/negative samples so that user is informed of updates quickly. * use flush C api instead of C++ api