Added Document object to the parser of inv.txt file