added more code comments.