fixed type to string in convert.py, updated models.py accordingly, and starting to do more doc/tests