Changed instance variables to properties

Properties make bugging harder and debugging easier. The only
disadvantage is that now you have to say self. before you access an
instance variable.