finished logging backend and added some doc comments