testing file io, fixing curand initialization