added more code comments, code derived from other themes features