Uncommented a loop and added more comments