fixed extension()

$model was missing in getFileExtension call
Merge pull request #18 from BigBlueHat/fix_extension_method

fixed extension()