Fix coding style.
Add a missing space.
Change function name.

sout->
stdOut
serr->
stdErr
err->
error
ret->
succeeded