adding comments to function passes. more cleanup stuff.