added logging module to replace print statements