Fix bugs and add new Cube library
New minified version for Cube and S3D