Fixed exception for adding instance twice.
Added .travis.yml.