getting simulated data to our format - not final!

This version does not work and needs debugging.