Fixed some errors for the static gait, but there are still a lot of them in there