Added test script, smr2spike now function