Added option to save instructions to file