Adding tests, adding 'ignore' option, modularizing default config, fixing some bugs