Fixed some bug and adding docs
Added typedoc: client documentation