Refactor Rakefile

Fixed #51