Finish testing scan querier cache
Add comments
Fix memory issues related to scan report