added travis file and fixed warnings