Added commenting template to codes under logic written by Nicholette