Changes the html generator to use argparse and to write the generated html into a file instead of stdout