updated doc

- added erlang code snippets