Fix API docs some more, fix bug in popup positioning in docs in some examples