Upgraded kao gui pbf to use argparse