Ads and bug fixes

(warning: ghetto/quick code for ads)