1. import write xml content function from update_functions.py
2. comments
renaming a parameter
cleaning