developing and fix bugs

create by dhc for term cooperation and developing my program