You don't get a man out of debt by lending more money to him and forcing him to accept it while following specific terms on how to make use of it.
Oh really? I thought that's exactly how borrowing worked regardless of Greece somehow being coerced into not meeting their huge payroll: 1. Person borrows money 2. The person giving the money sets terms and conditions on how the money is used and when it is paid back.
Greece is incapable of realizing that their form of socialism has not worked. They need free market reforms and a reduction in government. Even if they leave the Euro they cannot devalue their currency enough to fix their problems. Ask the Weimar Republic. I can't believe ninety year old failed policies are coming back into vogue. At least Germany remembers.
I've noticed several design suggestions in your code.