A port of XTide 2.x to iPhone/iPod touch