added method for creating update xml
minor changes
modified test cases