Refactor/logging

Change all System.out.printlns to logs