DOC: viewer: some corrections

Hi,

I reviewed the tutorial for building a viewer. The API used in example was outdated.