fixed inverted coordinate system. added regression analysis for time func in polar coordinates.