Add documentation for user state library