Create PIMain.c

entry point for plug-in