Motor controller cleanups and comments