added --write outfile

this will not print to stdout but write results to an html file.