Added Away3D. Reduced code complexity.