Fix working directory bug
Add submodule support and gitignore support