fixed the reclass function.
bringing back a stashed commit with all of the intermediary files written out