Removed redundant set methods which were only used in the constructor.
Changed the code in the constructor to be 'this.var = var' instead of
'this.setVar(var)'.