fixes issue #3, also corrects example.json as mentioned in #1