changes made for api.rb
Minor cleanup (puts statements)