Added basic functionality for terrain library