Large refactoring to make different coverage calculations easier to implement.

Managed to decouple calculating links from being forced to do coverage.
Code always types bamfiles now.