Add submodule support

Fix #9