start to code acm manage script based on test.sh
main function of acm manage script is finished.
a little code refactor