Added cc file with functions for running the gravity simulation,