Added hash generation capability. Discovered possibly bug related to
GZIP that might need to be fixed. Code also needs to be cleaned.