added comments and methods into cram_physics old fork