Updated comments.
removed unused variable.