Creating output + restructuring BC sorting

This version now generates an output tree containing individuals hits.

Cheers,

Martin