changed flow-chart for interrupts on the motor-module