Make class methods private.

Following a discussion in #222, this corrects the use of the private
keyword, ie. it doesn't work using the `def self.` style of defining
methods.