Implementation of MODFAC definition to compound creator

Implementation of MODFAC definition to compound creator