clean code

remove some unused files.
add  global diagram