added text-file-reading capabilities