Updated three to latest version
Re-organzied code
Added misc fixes found on Github from other contributors. Thanks!
Removed console.log