added thresh values to runme and td numTrials=1, modified attribute score calc in gen_food_network to take into account categories