Update gaitMain.m