Fix typos and make api examples consistent