Bug fix and updates to the generic_fns.angles.wrap_angles() function.
This was not wrapping correctly when the window was not between 0 and 2pi. Epydoc tags have been
added to the docstring, the window size can now be specified and is checked against the bounds as a
sanity check, and comments have been added all over.