adding logging, doc strings, changed ac to acct