Lots of updates, new generic level sensor, huge update to gui code