added write_keys doc