corrected keywords to get proper syntax highlighting

corrected keywords to get proper syntax highlighting; also corrected the
examples to use the new, slightly modified method names