code clean up to math.geo, simlified interface and functions