Added SaveBin function (parameter is a file name)