Cleanup code
#29 Fix update_data and show graph.