20080211 by Hannu: Added capability to record to stdout.
20080212 by Hannu: Added -a (amplification) option.
