Adds a working code example to go along with README update, resolves #1