move position of dbg.h
update design docs on regexp vm