first parameter of createERFilterNM1/createERFilterNM2 is now mandatory. changed the sample program to use the new prototypes