Add docstring to manualintegrate
Move namedtuple to compatibility
Make manualintegrate more robust with regards to u-sub variables