Enhancements and cleanup and log spectrogram creation