update code

1.add code note
2.clear up code