ws2foreign function

Converts data from one format to another within MLwiN