add few comments
improve config validation