Add travis yml and other fixes