added a plot class to simplify real time plotting as well as bug fixes for the tempMonitor demo