Formatting improvements and improve method in "read_file" snippet.