More logging and comments in __init__.py