Updated xml de/serialization to handle the coil labels and fixed a few bugs.