update Rakefile
fix typo and bugs