Feature/check submodules

Fixes #1020