Updated ENWindow

Added onClose method
Changed ENXML to use ENMutableArrays