added comments to locomotion