Added NumSamples to cfginfo type

Added NumSamples so we have access to the total
samples in the file without having to parse the
Rates list.
Fix iss #20

Added check for reading past the last row identified
in the cfg file even though there might be more data
in the dat file. Also updated some comments.
Fix iss#20
Change test case in script