Added more comments

Some comments were added and changed one variable name