Refactored code to match change in id key

Study results now contain "id" key instead of "name". getStudies has
been made compatible, and demo commands have been updated.