Closes issue #99 Undefined index error
Add travis-ci configuration