Added ability to load documents from Byte Array.