Add text printing support and simple demo
Clarify comments