Adding debug statements to Elements; fix error in Group 16 elements