Delegated printStackTrace calls for exceptions to Logger.log so that output can be controlled from a central place.
Organized imports.