fix file handling, include sample text (lorem ipsum)