added idle option and direct motor control