Added error management and travis config