Fixes #2 -- Replace calls to System.out with proper logging