converted functions to lower_case and added roxygen2 comments