Hide internal functions

...and rename functions that would be considered "protected" in other
languages.