Update docs for v.2

The documentation still shows example vor version 1. I updated it to objects as of version 2.