added bundle colpack option to cmake
some more updates on debug functions
fixed copy paste error
use JSON template for bundling colpack