Added terrain generation.  Compiles and runs.  Uses simple density function.  Code is becoming unwieldly.