precision, recall and F1 measure calculations added