fixed code to work in client; improved documentation
Release 0.9.8