Fix and add rakefile