updated IRMP to rev 143

merged in upstream changes and fixed some porting bugs