Add documentation for widget constructing