gnm: some CPL warnings added and doc errors fixed