refactor: split textviewer to more functions and files
feat: add correct error messages for text viewer and image viewer
docs: correct formatting
docs: add code documentation
feat: add text viewer main