got mode calculation working. still not done with spectral analysis