Added math.vector.heading() and bug fixes.