inlined some small methods
reorganized headers
moved genRandom out of cardtools.h