typo

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

Signed-off-by: Mattias Andrée <maandree@operamail.com>
typos + reduce code complexity

Signed-off-by: Mattias Andrée <maandree@operamail.com>
reduce code complexity + fix bug

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

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

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