rather major plane data optimize

simplify t:txb
reindex on load
simplify s:load, change to s:redraw
move len, gridname outside of class
use len instead of len() in some places