clean up app.rb as per @a2's suggestions.

remove debugging code and switch to the new Hash format