Edit main file