added a calculateHash() method in svyIO to get SHA1 or MD5 hashes