Fix bug in cardrdr, align code and add comments:

cardrdr: 'rc' s/b init to 0 to prevent unpredictable erroneous triggering of i/o error path.

hetmap, hsock, hthreads: align source code and add comments. (cosmetic only; no functional change)