Added autocorrelogram function
changed API of spectrum/spectrogram functions