PreRec calculates precision and recall successfully. Look at prec_rec_output_details to see how everything went down per article. also main updated.