Refactored things. We now build a terms to vectors index and this is the object we are going to pass to the OutputStream class