Group hits by project

Rebased and small updates to #77. review by @mads379.