WIP: add debug info
WIP: used the new initialization API for BSpline reg