Some files splitted for a better overview
Bug fixed in HDX_idgen()