Add stamping mechanism. Solves issue #1

Adds a field to prevent re-applying transformations twice.

Added code, tests and docs.