Some file extentions has been added.
code refactoring
Merge pull request #1 from c-fos/master

a little improvement