splitting lines in text and adding some datafiles