added docs
added doc, commented log