move several functions into the api. fix root growth directions. clean up root and grass growth code.