renamed inspector_gadget to main
Renamed main to main_script.
Attempted to make getPan() keep heading within bounds set by calibrateCompass, but was unsuccessful