Fixed minor bugs, prefer transfer over scp than sftp