added log debugger, included __init__ for classes