doc and logging refinements, adding argparse