Bug fixes, added sampling frequency in spike_class