Improved comments for ease of understanding