iPhone/iPod support; bug fixes