Fixed printlns and warnings