Added first draft of grid class; hacked a linux canvas text fix in