function wacky

added comments to all lines of code