added writeup and removed debug statements. Fixed a bug in rollback. All tests pass.