found and fixed bug in sph. distance, spec and refr working
some stats, prepare to refactor for displaying via glut