added sha1 to File and changed hexString to toHexString