a runable version of gravity sim with testfile