added sims argument; if not provided, then function will open all relevant files in the specified directory