Bug fixes and iAd support