// Opens File Dialog
        private static void Open_File()
        {
            OpenFileDialog openFileDialog = new OpenFileDialog
            {
                Title  = "Open RGcode File",
                Filter = "MOD Files (*.mod)| *.mod"
            };

            // Open window and check if file is valid
            if (openFileDialog.ShowDialog() == true)
            {
                modulename = openFileDialog.FileName;
            }

            SyntaxChecker syntax = new SyntaxChecker(modulename);

            syntax.write_metadata();
        }