modify some scipts and add some commets