add the argument length checking and help output function