finished the kernelise function. now works (properly?) for spike data from fly experiment