Now with graphs

At this point I'm just rebuilding Spacesim, but this version is a bit
more robust and thought out.