Mathematica codes
You need package files to run Mathematica codes below.
package files : Gravity.m Gravity2.m GravityPt.m
You had better to use data files below to save your time. (400MB for each)
data files : XTensor0.m XTensor.m ScalarPt.m
Mathematica codes below.
Section 3 & 5 : ScalarPt.nb ScalarPt2.nb ScalarPt3.nb
Section 4