Initialization with given documents