added feature for modifying cells in diagram, as well as compile file