added modlur.c and modlur.h which pull many funcs to here