Adding init callback and Travis build file.