Sampling rate set for CNT files
Commenting and general bug fixes.

Added commenting, bug fixes, and wav writing support.