Added disabling of the plugin (Issue #1), improved filetype check (Issue #7)