improve math functions & fix mistakes in suncalc

there were mistakes in math.c mainly atan function was not working.
maybe calculation is done in degree (needs check)
meanwhile other approximation of atan is used.

also some typos and minor changes in suncalc algorithm were fixed.