added update() and read() methods
Fixed XML issues