[codiag] Adding the bubble removal feature. closes #11