added --help and --man options