Added docstrings and some logging
Added logging settings
Modified logging settings for production environment