added motor controller file

added motor controller file