added some tests
added doc and tests to convert.py
fixed bugs
fixed bugs, tests passed