More bug fixes. 

Who thought that making a 7000 line file with a god class was a good idea? 

Anyway, more bugs all around. 

I wish had more time to create a proper library, exclusivity for WebGL; I find the abstraction Three.js attempts to do rather intrusive.