create a man page.

start using getopt(3) to process command line arguments. Partially support old "levels" by accepting 0
introduce backward compatibility handling with arguments for level