Moved to argparse to simplify arg parsing, improved ssh handling