Add existing folder feature, stubs bug fixed

I added existing folder feature, improved it to get import all levels of
folder tree not only first level, fixed switching between stubs bug.