added argparse, refactored code into more functions in library. working on tconditionals to ask for URL and outfiles if not specified on cmdline