Brain computer interface and motor control analysis code