updating Rakefile and fixing lint errors