added textured cube and fixed few bugs in CubeObject