Bug fix:

- Bug fix in Agent .__repr__
- increase robustness of Agent __init__