Ported changemap maker and fixed bug in yatsm_map