updated docs
added debug statements