Change methods and variable name from cammel_case to snake_case, and several fixs.