add ghdeg2 opt
fix wscale in w derivative, adapt trace.deg to number of spots
add resize func
add resize func
add possibility to integrate tail