Begin of idpmodule.c and some useful notes