Add appledoc, fix some documentation