Remove duplicated methods

Remove terminateWrapper and change stopReadWrapper to public.
Remove unused code and clean up.
Add documentation.