Filetypes can be set in settings file

Rewrote the settings file so it supports a new filetypes property containing a list of extension that will be processed.