massively refactor thermometer into analysis lib
demo vis working