added selrules.m
added selrules.m