Updated API docs and the github example