updated docs
fixed compiler complaints on using of
uninitialized variable.
updated documents