made it look like a module added try/catch and moved colour crap out of webgl context