add main code map "main code map.dgml"
write comment for Main program's modes