Changed to use logging framework

Changed from print methods to logging for logging information