Add prototype of check
Fixes and suggestions
Add docstrings

and others small fixes.
A few more comments
Merge branch 'r-gaia-cs-check' into gh-pages