Add usage() and change getopt error handling slightly.