Modify names of fuctions and variables.

Names of some fuctions and variables are not straight forward. It's hard to understand
for other people (even for me). I modify them to make the source code more clearly.