Created a second version of the method parse inv.txt, fixxed mistakes