fixed some issues with ws3dinv and converting ws_data file.