added name updating for section objects. began XML writing functions in handleXML