added kwargs2dict
added kwarg processing to runmodel