Properly implemented creation of iqdat files, and noise generation.