More crash prevention.
Ability to export text. Resolves #8.