Update api_controller.rb

commented out loggers, added comments to all defs