Replace #define constants with loaded input values. Not tested.
Change units of G to minutes instead of hours.