fixed bug in extention detection
tidy
added an example