fixed colorscheme function, misc fixes