fixed reading more than 1 line from a file. Can now load all files in directory tree