Added file output. key 's' to save the current file into src directory