Updated docs, added logging