Replaced almost all print msgs with real logging msgs