created logger interface. replaced printlns with logger calls