Added a writePath parameter to SimFuncs. SimFuncs can now create their own agents.