Fixed a lot of potential '0' errors in fields that I would be expecting
values in.  A bit more logic in the edit/insert/add areas for both
parent and children.