Initial upload of gravity code.