fixed some bugs

- unrecognized colorMode is now added and colors that relate to that mode are discarded
- fixed floating point rounding issue
- figure out where is global scope better
- better wat to find the setup function