Added logging via the logging module
Misspelled name removed