Bug fixes to mrClosed().
Added m-array method to capHistSum()
Fixes to mrOpen().