add back mirlMain.m
fix warning in the periodic callback