Private variables

Turned all variables private.