created legs with two sections, corrected joint param setting order, added control of joints through setting velocities and max forces