exit button, network/interface syntax

included exit button and fix typos and syntax of written network file.