Add debug code to CubeFile.cpp