moving get_divdata to its own module. adding argparse parsing