cleanup in 2D view
slightly more efficient pocket code
started a preliminary interactive text tool.
 - extracted template to a separate file.