proper cleanup and commenting on CameraManager