Change camel case functions to snake_case

Makes code look cleaner when used with standard functions/classes.