Encodercontroller added

encoder in motor-struct didn't work. Encoder and motor got seperated.