add a function to add the file hashes.
hook up option to compute file hashes.