Issue 10

This allows api.addAgent() to take a double or int, and should therefor Fix issue #10.