clean up existing API, and add recent API additions like sensors, device properties, loadGUI