Updated sprint queries

Listed all functions at top. Added group parameter to many functions.
Other tweaks cleaning things up.