fixed bug: dimmer was treated as switch when updating pwm-module state.
cleaned up: removed some unnecessary import-calls