added ex_doc & fixed formatting of the doc examples