added exclusion and case sensitivity switch
updated dist