Output proper punctuation, add detailed comments