change to utility function queryRd to handle fromJSON call. Documentation update. Examples added.