Fixed typo in docs
removed dead code