Added a function that will read all document into a hashtable