improved demo

script for retrieving and adding notes, shows how to respond with
binary files and JSON data