added start of file hashing code