Adding support for checking extensions.
Merge pull request #4 from websharks/feature/1

Adding support for checking extensions.