Major re-design of text.py -- simplified; eliminated recursive composite structure for views