Refactored all sparql queries; updated comments.
Fixed bugs in GVR responses at different levels, often by adding 'distinct' to the 'select'.