Added travis-ci and made edits to callbacks