fixing docs and wrong code style