do not overwirte exist file by default
add Mac support
add reset function
fix typo