Code mapping

generating text code from blocks, first experimental iteration