improved motor configuration and duty cycle customization.
moved current debug code for setting motor values to seperate method