m doc

Signed-off-by: Mattias Andrée <maandree@operamail.com>
proofread checks that ride and package is defined

Signed-off-by: Mattias Andrée <maandree@operamail.com>
proofread function signatures

Signed-off-by: Mattias Andrée <maandree@operamail.com>