modification due to pretraining
after debugging new_egg_code
made g-propagation work
clean-ups