Added option for setting valid file extensions

Added option for setting valid file extensions and documentation.  

**Possible use case:** repositories containing both es5 and es6 code often use the `es` and `esx` extensions to distinguish between es5 and es6 code.