Removed unused variables.
Fixed typo in comment.