Working almost

Seems to work now for WPSC categories.
In tests it still misses 1 or 2 categories for unknown reasons.
Checks to see if parent exists.
Keeps looping until all items are added or stops adding items.