remove attribut gam because he was in param.h
rename using of method near by nearR to correspond with classes