mode stuff

added getmodecolor and more tests