added 'exclude' option to ignore files