added clearHistory() function. Calling 'rmt -ch' local history will be deleted.