added readme / added write to file function