Rsync functional

Initial pull request for #72