Add option to use decibel scale as before df1d6293817e.
Fix various warnings.
Fix typo.
Merge pull request #1 from jlindgren90/master

Restore decibel scale option and fix some warnings