add option to output n words, and switch to argparse