fixing some bugs related to color
more rendering
added text support