use argparse + clean up code

session conversion still needs cleaning up