Updated rigid body integrators: refactored, allowed for anisotropic pressure control and coupling modes