Modernize text drawing code
Update documentation