Add capability myaddinstance. Fixes #24.

Hi Mark,
Here is a fix for issue #24. Please take a look and let me know what you think.