Test multiple instance

added some documentation and added a basic test. Should help with issue #24