Amended 'createfactor.ds', added 'isValid.ds' and amended the description file to add some base functions.