Use File.extname for getting the extension
Fix readme