More physics code and doc updates