fix some function names and added comment