Added LoadDocuments function.
Imported Mike Freeman's latest github repo.