Added checksum functionality. Will check that file transfer has worked with no corrupt files. Also added so a responce wont be given until filetransfer has fully completed.