Clean up SceneObject class, add debug flag to config