file io, refactored texting into its own header file