some fixes in documentation of wrapper and state