fixed bug with tools.angendpt() (closes issue #3)

The bug was related to a cos rule formula failing to account for the ra1, dec1 not being
at the equator.