added color query method framework
fix null dereference bug in new_grid
add debug print method; more work on color getter