changed comment style
changed 'checkExtension' method