Added fsync in gen_hash(), added .gitignore