use enhanced for loops

For #9
Use enhanced for loops

... in swing and pdf modules

for #9
Retain logger configuration

by saving a strong reference to them.
Merge pull request #11 from UprootLabs/cleanup2

Use enhanced for loops. Looks good, thanks.
Merge pull request #12 from UprootLabs/fixLoggers

Retain logger configuration