added cosTheta*, puweight
added counters