Added facility for defining query in xml
fix overzealous styling
Fixes #68

This was due to a lingering reference to raphael's paper.