Update to v3.1
Added travis support