Implementing write chapter

- TODO: Implement namespaces before contuing
Implemented registration of namespaces
Merge pull request #9 from dantleech/implementing_write_chapter

Implementing write chapter