add comments and a known bug on repeated words