Renamed private variables/methods for consistency.

Private methods and variables begin with a single underscore. Global
variables are additionally in upper-case.