Got spike decoding/encoding working.