refactor; add dsetting for random_sample_size
better cmdline help