epos can now control an arbitrary amount of bodies (also streamlined some code segments along the way)