Improve range calculation and add mean
Clean up debug statements
Create Solr query