replaced the depreciated numpy.acos function with numpy.arccos