adding simple script for running lqr within modes