Corrected minor bugs. Still issue with coverage plot