added global variables for rotation direction change and pwm levels on A and B channels;
#18