implemented agent initialization in sim_init.  I'm not sure if it works correctly yet.