Replaced System.out/System.err calls with appropriate
logger calls, and removed useless mains