Added a fit index function as an argument and namespace for sim function to prevent conflicts with sim function in psych