implemented terrain callbacks

added block() callback to get or set the type of a block
minor changes