added header check for PSVersion. hide export functions which refer as private.