Integrate write

A PR integrating the write demo.

- some refactorings
- some cleanups
- changed showdown for marked