unified Text and AttrText classes, better example, better docs