numerous changes, mostly due to file download
Small change to allow for editing of units when they have bad references.
lots of changes.  Getting close to time!!