switch to argparse, added readgroup selection