Program now reads and writes to log.txt using YAML.