Minor cleanup to sampling code.
Stopped using custom "uint32" etc. notation.

Now using standard "uint32_t" etc. notation.  No need to reinvent the wheel.