added argparse and fixed twitter functionality