Removed calls to System.out. Replaced by logger calls
replaced calls to System.err by Logger calls