BUG : fix demos

 - fixed bug in get_last_value
 - updated for new API on defining DataMuggler columns
 - propagate temperature through demo code
 - fix bug in model