Bugs fixed.
Added comment.