Bug fixes. dataconverter.py seems to work.