Plot spectogram with a log scale for amplitudes

Refactoring
Add some additional tests