Wrapped assertions in transactions and fixed faulty replacement of refnode
Tagging for version 2.0.0
Back to development version.