Splitted generator.rb into generate.rb and generator.rb