Add ArgParser class, improve commands judge and gen, create little documentation