Updated a bunch of stuff....

Improved multithreaded rendering quite a lot and modified a bunch of
other stuff...