updated to argparse

optparse is depreciated
removed some stale code