Cleaned up text.hs and added in a text rendering function.