Standardise naming of all internal functions to lowercase with underscore convention. Add aliases for old names to avoid breakage.