Parsing papers from text file.