Code review to confirm operation. Added and clarified comments.