Add docstring to prevent warning

Fix some errors and warnings that check() was returning.

/cc @mkcor