Text this: Kinematics and dynamics of multibody systems with imperfect joints