Added sprintf, fixed bug with anonymous query

Added sprintf module to format report.

Fixed a typo in generating the URL with anonymous contributions

Fixed unit tests to work with new formatting