Use the 'logging' module rather than print statements for debugging purposes.
Ignore warning messages for now.
More comments.