Move text into a constructor, add a function to retrieve it

Per #237.