Add md5_dir to check md5 hashes of all files in a directory. Add more tests.