Use macro for default sampling rate.
Correct return value of main().