updated code to be compatible with spike2 v8 and fleshed out 32 channel support