Refactor of examples and api documentation complete