Added conversion factors to kernel protocol and fixed bug that prevented stimgen_interface to compute the cernel in certain situations.