Changed some variables to private

CheckStyle suggested it