fixed error in Apigen.rb
added missing return statement to simple_generator