added some diagnostic output to precision/recall script