Changes to get things to work

PWM shift changed to prevent overflow, and the bluetooth device class
is now set according to the module manufacturer's specs.