added some comments to slap code