Clarify confusion in code examples

The few code examples had confusing comments. The unpack example needs to use the `unpack()` not `pack()` method. The file names used in examples should represent the data type they contain (`.json` for JSON data, `.txt` for packed data).