update on variables

fixed variable's names and added better print method