Fixed: LayeredDetector keeps track of amount of hits it has.

And runtimeerror if somehow the wrong detector attempts to be incremeneted.
Style fix in detector printing
Fixed: filter saves first measurement. Need to fix later.
Fixed: clear_hits AFTER adding all new filters, not during.
Fitting changes, minor.