Update textext version to 1.3.1

Update to the textext library and a few other tweaks.