Code cleanup. Replaced all remaining .printStackTrace() calls with log messages