Logging: added logging module and updated references