Fixed API docs and a code exemple on homepage