Added text struct/functions for text parsing