More documentation for declarative api.

Old documentation converted to Qt-style.