Small refactorings of update_uml.py.
Added some documentation into relations.uml.