C source written by Peter Memishian (meem@gnu.org).

XPM's mostly from Seiichi SATO (ssato@sh.rim.or.jp).
