Fixed Rakefile, expectations deprecations and travis.