NGC6822: short period variable stars, stellar population and distance scale