fix m bug is sigmoid + add some comments now that I have testet it

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