Add error handling for overwritten keys and mismatched arrays; add tests
Add TravisCI hook