remove some redundant features in the script and add a mannual file