Code refactoring according the comments of groupmates

Renamed class variable, removed noise, renamed setValues, make the code
more secure.