optimize and add some comments
remove unuseful file