More documentation, changed examples to match newer API