fixed max/min hold not reseting when device is retuned
removed redundant line
added clear write button, renamed variable for consistancy
Merge remote-tracking branch 'mfarhan/clear_trace'