added comments, styles, each loop complete