edited constructor CFG
added some extra comments