Perf reset

added 'perf reset' command and library calls