you can now optionally pass a dir as a first argument and an output html file as a second argument