Fixing references and adding submodule for dependencies.