Times Article On Goldman Sachs

Were the Government Bailout of Banks several months ago in the form of Grants (“free money”) or Loans?
I was reading this article on the New York Times website, about how Goldman Sachs has dramatically rebounded, and paid off its bailout money:
http://www.nytimes.com/2009/07/13/business/13goldman.html?hp
But that got me wondering, was that Bailout money to the banks (not just Goldman Sachs) in the form of Loans?
And if they *were* just loans, then why would the bailout have caused a controversy in the first place? Aren’t the American taxpayers essentially getting back their money then?
Please answer my question!
One big problem is that the money has not been distributed. The fed is holding on to the money. Second if these banks and such do not pay the money back who is holding that bill? We are co signers at least.
Second when thy printed that much money they deflated our dollar essentially emptying Americans savings accounts. Why do they think that the bank account of AIG is more important then yours?
Now the Feds are holding more money and the American citizens are holding less. They have redistributed the wealth just not to the people but to them selfs!
Alleged SEC Leak to New York Times