change some var names; add check_arg()
restore(): fix
fix some logic bugs
md5sum(): small fix
add err_exit() to unset color before exit with error
main(): add check deps