implemented sendMonad and agents, added Prim.currentEnv