Converted private instance variables to private properties

Variables which were previously declared in implementation files’
class extensions as (private) instance variables are now declared in the
class extensions as (private) properties. They are now accessed using
an underscore, to be consistent with public properties.