added comments to addToN