added comments to timer and whitelist code