fix implementation for fetchPattern
no need to generate md5 hashes for the index.  will utilize these elsewhere
add buildFieldJSON method to structure json representation for fields
add a count field to json schema