Getting src and dest ready
Working version 1
Fix some bugs