Added IDoc model, utils and tests