Added explicit setColor apis
Added comments, removed dead code.