Added the debug option on the c-side. Changed oi.rotate protocol to include actual angle change.