added stability measure to mind_osc.py