1.Add macro DEBUG to control output.
1.Fix a stupid bug.
2.Modefy and add some output.