ENH: Add api to genmod. Fix cov_struct import.