Output frequency.
Pep8'ed the code and minor py3k fixes.
Added `soundspeed`.