Fix #10: Allow api.addAgent() to take double or int

See issue #10. This patch creates an api.addAgent(String, int) method.