fixing a weird indentation problem in little-used code. also, adding a get_range() function and renaming setPWM() to set()