callback,flaging, saving of output buffer working. Now working on using some feature extraction methods