Cleanup

Bundled up functionality into TerrainGenerator and FluidSim classes.