Added mean function and tests
Added travis.yml