added readable output file for jcaliber. cleaned up camera.cpp.