Global variable pi
Make resolution fits work
Add more fits for skew and for sagitta and elliptical with phases