Issue 69

Broke out the processing of the hit matrix so that it can be tested separately.