Added function for recursive submodule checkout and merge of branch