Remove trailing spaces.
Clarify scoping (fixes issue #5)
Render text versions.