Replace print and commented print statements with correct logging
The code has a number of print statements either in code or commented to add logging messages. This should be replaced with appropriate code logging mechanism that can be controlled with log levels throughout the codebase.