Fix various issues.
Implemented terrain generator for Dart version