Added section on writing to file