Add comments.
Removed debug messages.