fix typo in documentation
variable declaration cleanup