Added formated writes for Map Generation.

Provides a formatted_set_terrain method. Also added helper.cpp to the
cbp file.