fixes to meds2pdb and the xform engine to support a NULL function. also various fixes to libIRDB to handle IDs better, etc.