added interactive mode

only for the mode seting
Optimized makehash function

Instead of getting the timestamp from each file in the directories, just
get it from the directory. Maybe it's slightly faster.