Optimized (Hopefully bug free) Text Writing

Removed line pointers,  fixes stack bug.  Optimized function for
clearing text that changes frequently.