Write documentation

First draft of documentation