tree resource added.
refactored evironment object to be subclassed.
changed spawn to re-use the object.