correctly delete the first element of the lists
convert to argparse from argv to make help nicer
include a --html option for the top frame