Add copy logic

Some directory checking, copy logic