rewrote comments, and integrated redis