Actually tested script, fixed numerous errors.
Fixing revision dates.